﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using ESOL.Common.Entity;

namespace ESOL.Common.DTO
{
    [DataContract]
    public class QcItemQueryCondition
    {
        [DataMember]
        public int txtPageIndex { set; get; }
        [DataMember]
        public int txtPageSize { set; get; }
        [DataMember]
        public int IsActive { set; get; }
        [DataMember]
        public string ItemName { set; get; }
        [DataMember]
        public string ItemCode { set; get; }
        [DataMember]
        public string Status { set; get; }
    }

    [DataContract]
    public class QcItemQueryPageResult
    {
        [DataMember]
        public int TotalCount { set; get; }
        [DataMember]
        public List<QcItemEntity> items { set; get; }
    }

    public class QcItemSaveParam
    {
        [DataMember]
        public string userNo { set; get; }
        [DataMember]
        public List<QcItemEntity> addItems { set; get; }
        [DataMember]
        public List<QcItemEntity> updatedItems { set; get; }
        [DataMember]
        public List<QcItemEntity> delItems { set; get; }
    }


    [DataContract]
    public class ConfigQueryCondition
    {
        [DataMember]
        public int txtPageIndex { set; get; }
        [DataMember]
        public int txtPageSize { set; get; }
        [DataMember]
        public int IsActive { set; get; }
        [DataMember]
        public string CreatedBy { set; get; }
        [DataMember]
        public string CreatedUser { set; get; }
        [DataMember]
        public string ConfigNo { set; get; }
        [DataMember]
        public string MaterialId { set; get; }
        [DataMember]
        public string MaterialName { set; get; }
        [DataMember]
        public string Status { set; get; }
    }

    [DataContract]
    public class ConfigQueryPageResult
    {
        [DataMember]
        public int TotalCount { set; get; }
        [DataMember]
        public List<QcConfigEntity> results { set; get; }
    }


    [DataContract]
    public class SolutionQueryCondition
    {
        [DataMember]
        public int txtPageIndex { set; get; }
        [DataMember]
        public int txtPageSize { set; get; }
        [DataMember]
        public int IsActive { set; get; }
        [DataMember]
        public string CreatedBy { set; get; }
        [DataMember]
        public string CreatedUser { set; get; }
        [DataMember]
        public string SolutionNo { set; get; }
        [DataMember]
        public string SolutionName { set; get; }
        [DataMember]
        public string MaterialId { set; get; }
        [DataMember]
        public string MaterialName { set; get; }
        [DataMember]
        public string MaterialCode { set; get; }
        [DataMember]
        public string Status { set; get; }
    }

    [DataContract]
    public class SolutionQueryPageResult
    {
        [DataMember]
        public int TotalCount { set; get; }
        [DataMember]
        public List<QcSolutionEntity> results { set; get; }
    }


    [DataContract]
    public class StdQueryCondition
    {
        [DataMember]
        public int txtPageIndex { set; get; }
        [DataMember]
        public int txtPageSize { set; get; }
        [DataMember]
        public int IsActive { set; get; }
        [DataMember]
        public string CreatedBy { set; get; }
        [DataMember]
        public string CreatedUser { set; get; }
        [DataMember]
        public string StdNo { set; get; }
        [DataMember]
        public string StdName { set; get; }
        [DataMember]
        public string SampleFunction { set; get; }
        [DataMember]
        public string Status { set; get; }
    }

    [DataContract]
    public class StdQueryPageResult
    {
        [DataMember]
        public int TotalCount { set; get; }
        [DataMember]
        public List<QcSampleStdEntity> results { set; get; }
    }


    [DataContract]
    public class IqcQueryCondition
    {
        [DataMember]
        public int txtPageIndex { set; get; }
        [DataMember]
        public int txtPageSize { set; get; }
        [DataMember]
        public int IsActive { set; get; }
        [DataMember]
        public string CreatedBy { set; get; }
        [DataMember]
        public string CreatedUser { set; get; }
        [DataMember]
        public string IqcNo { set; get; }
        [DataMember]
        public string PurArvNo { set; get; }
        [DataMember]
        public string PoNo { set; get; }
        [DataMember]
        public string MaterialId { set; get; }
        [DataMember]
        public string MaterialName { set; get; }
        [DataMember]
        public string Type { set; get; }
        [DataMember]
        public string SolutionNo { set; get; }
        [DataMember]
        public string SampleStd { set; get; }
        [DataMember]
        public string Result { set; get; }
        [DataMember]
        public string Status { set; get; }
    }

    [DataContract]
    public class IqcQueryPageResult
    {
        [DataMember]
        public int TotalCount { set; get; }
        [DataMember]
        public List<QcIqcEntity> results { set; get; }
    }

    [DataContract]
    public class IqcSaveParam
    {
        [DataMember]
        public string curUserNo { set; get; }
        [DataMember]
        public QcIqcEntity iqc { set; get; }
        [DataMember]
        public List<QcIqcRecordEntity> addRecords { set; get; }
        [DataMember]
        public List<QcIqcRecordEntity> updatedRecords { set; get; }
        [DataMember]
        public List<QcIqcRecordEntity> delRecords { set; get; }
    }


    [DataContract]
    public class SpqcQueryCondition
    {
        [DataMember]
        public int txtPageIndex { set; get; }
        [DataMember]
        public int txtPageSize { set; get; }
        [DataMember]
        public int IsActive { set; get; }
        [DataMember]
        public string CreatedBy { set; get; }
        [DataMember]
        public string CreatedUser { set; get; }
        [DataMember]
        public string SpqcNo { set; get; }
        [DataMember]
        public string SalesSpNo { set; get; }
        [DataMember]
        public string MaterialId { set; get; }
        [DataMember]
        public string MaterialName { set; get; }
        [DataMember]
        public string Type { set; get; }
        [DataMember]
        public string SolutionNo { set; get; }
        [DataMember]
        public string SampleStd { set; get; }
        [DataMember]
        public string WhNo { set; get; }
        [DataMember]
        public string Result { set; get; }
        [DataMember]
        public string Status { set; get; }
    }

    [DataContract]
    public class SpqcQueryPageResult
    {
        [DataMember]
        public int TotalCount { set; get; }
        [DataMember]
        public List<QcSpqcEntity> results { set; get; }
    }

    [DataContract]
    public class SpqcSaveParam
    {
        [DataMember]
        public QcSpqcEntity spqc { set; get; }
        [DataMember]
        public List<QcSpqcRecordEntity> addRecords { set; get; }
        [DataMember]
        public List<QcSpqcRecordEntity> updatedRecords { set; get; }
        [DataMember]
        public List<QcSpqcRecordEntity> delRecords { set; get; }
    }

    //IPQC,过程检验
    [DataContract]
    public class IpqcQueryCondition
    {
        [DataMember]
        public int txtPageIndex { set; get; }
        [DataMember]
        public int txtPageSize { set; get; }
        [DataMember]
        public string CreatedBy { set; get; }
        [DataMember]
        public string CreatedUser { set; get; }
        [DataMember]
        public int IsActive { set; get; }
        [DataMember]
        public string IpqcNo { set; get; }
        [DataMember]
        public string WoNo { set; get; }
        [DataMember]
        public string TechnicName { set; get; }
        [DataMember]
        public string MaterialId { set; get; }
        [DataMember]
        public string MaterialName { set; get; }
        [DataMember]
        public string MaterialCode { set; get; }
        [DataMember]
        public string Type { set; get; }
        [DataMember]
        public string SolutionNo { set; get; }
        [DataMember]
        public string SampleStd { set; get; }
        [DataMember]
        public string Result { set; get; }
        [DataMember]
        public string Status { set; get; }
    }

    [DataContract]
    public class IpqcQueryPageResult
    {
        [DataMember]
        public int TotalCount { set; get; }
        [DataMember]
        public List<QcIpqcEntity> results { set; get; }
    }

    [DataContract]
    public class IpqcSaveParam
    {
        [DataMember]
        public QcIpqcEntity ipqc { set; get; }
        [DataMember]
        public List<QcIpqcRecordEntity> addRecords { set; get; }
        [DataMember]
        public List<QcIpqcRecordEntity> updatedRecords { set; get; }
        [DataMember]
        public List<QcIpqcRecordEntity> delRecords { set; get; }
    }

    //PQC,成品
    [DataContract]
    public class PqcQueryCondition
    {
        [DataMember]
        public int txtPageIndex { set; get; }
        [DataMember]
        public int txtPageSize { set; get; }
        [DataMember]
        public int IsActive { set; get; }
        [DataMember]
        public string CreatedBy { set; get; }
        [DataMember]
        public string CreatedUser { set; get; }
        [DataMember]
        public string PqcNo { set; get; }
        [DataMember]
        public string WoNo { set; get; }
        [DataMember]
        public string ProdPoNo { set; get; }
        [DataMember]
        public string MaterialId { set; get; }
        [DataMember]
        public string MaterialName { set; get; }
        [DataMember]
        public string MaterialCode { set; get; }
        [DataMember]
        public string Type { set; get; }
        [DataMember]
        public string SolutionNo { set; get; }
        [DataMember]
        public string SampleStd { set; get; }
        [DataMember]
        public string WhNo { set; get; }
        [DataMember]
        public string Result { set; get; }
        [DataMember]
        public string Status { set; get; }
    }

    [DataContract]
    public class PqcQueryPageResult
    {
        [DataMember]
        public int TotalCount { set; get; }
        [DataMember]
        public List<QcPqcEntity> results { set; get; }
    }

    [DataContract]
    public class PqcSaveParam
    {
        [DataMember]
        public QcPqcEntity pqc { set; get; }
        [DataMember]
        public List<QcPqcRecordEntity> addRecords { set; get; }
        [DataMember]
        public List<QcPqcRecordEntity> updatedRecords { set; get; }
        [DataMember]
        public List<QcPqcRecordEntity> delRecords { set; get; }
    }

}
